package com.annotation.action;

import com.annotation.core.Mapping;
import com.annotation.form.UserForm;

@Mapping("/userAction")
public class UserAction {
	public UserAction() {

	}
	
	@Mapping("/user")
	public String excute(UserForm user) {
		if (user.getAccount().equals("zhuhong")) {
			return "/view/success.jsp";
		} else {
			return "/view/error.jsp";
		}
	}
}